<?php
if (!defined('APP_ID')) { die('No direct script access allowed'); }

/**
 * Model class
 */
class Model {
	public static function factory($model_name) {
		$class_name = Node::MODEL_PREFIX . ucfirst(trim(strtolower($model_name)));
		Node::loadClass($class_name);
		return new $class_name;
	}	
}

